package com.wslds.blog.action.admin;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.wslds.base.action.AbstractCRUDAction;
import com.wslds.bean.Img;
import com.wslds.blog.service.ImgService;

@SuppressWarnings("serial")
@Component("imgAdminAction")
@Scope("prototype")
public class ImgAction extends AbstractCRUDAction<Img, ImgService> {

	
	public String listPhoto(){
		List<Img> list = service.find(instance);
		this.put("list", list);
		return SUCCESS;
	}

	@Override
	@Resource(type=ImgService.class)
	public void setService(ImgService service) {
		this.service = service;
	}

}
